import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'menuiconcolor'
})
export class MenuiconcolorPipe implements PipeTransform {

  transform(value: any, args?: any): any {
    if(value=='极速彩'){
      return '#fb6ab3';
  }else if(value=='时时彩'){
    return '#1afa29';
  }else if(value=='快开彩'){
    return '#7dc5eb';
  }else if(value=='六合彩'){
    return '#d81e06';
  }else if(value=='全国彩'){
    return '#1afa29';
  }
    return "#fff";
  }

}
